/**
 * 
 */
package com.feib.stms.service;

import org.springframework.transaction.annotation.Transactional;

import com.feib.stms.model.UploadFile;
import com.feib.stms.model.UploadFileTodoList;
import com.feib.stms.model.User;
import com.feib.stms.pagination.PaginatedList;

/**
 * 
 * 取得待辦事項
 * @author Jeff Gu
 *
 */
@Transactional(readOnly = true)
public interface UploadFileTodoListService {
	
	
	/**
	 * 讀取user待辦事項
	 * @param user
	 * @return
	 */
	public PaginatedList<UploadFileTodoList> findUploadFileTodoList(User user, PaginatedList paginatedList);
	
	
	/**
	 * 新增待辦事項(需要先找出該user的權限)
	 * 1.檔案正式上傳後馬上依權限加入待辦事項
	 * 2.當審查至一定人數後轉放行需增加待辦事項
	 * 
	 * @param uploadFile
	 * @return
	 */
	@Transactional(readOnly = false)
	public int addUploadFileTodoList(UploadFile uploadFile);
	
	
	

}
